<?php
	$product_id = $params[1];
	list($sql,$all_page) = splitPage("`tbl_color`","`product_id` = '$product_id'  ORDER BY `color_id` ASC", 30, $_GET['p']);
	$strPage = fetchPage($all_page,$_GET['p']);
	$query = mysql_query($sql);
	$tp->block('result');
	while($result = mysql_fetch_assoc($query)) {
		$color_id	= $result['color_id'];
		$title		= $result['title'];	
		$tp->apply();
	}
	mysql_free_result($query);
?>